﻿<%@ Page Title="NMR Data Admin" Language="C#" MasterPageFile="~/IdeaNMR/IdeaNMR.master"
    AutoEventWireup="true" Inherits="IdeaNMR.Web.NMRDataAdmin"
    CodeBehind="NMRDataAdmin.aspx.cs" ViewStateEncryptionMode="Always" %>

<%@ MasterType TypeName="IdeaNMR.Web.IdeaNMR_Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CphMaster"
    runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:UpdatePanel ID="upImport" runat="server">
            <ContentTemplate>
                <div style="border: 1px solid black; padding: 10px 5px 5px 5px;
                    position: relative; margin-top: 10px; margin-bottom: 20px">
                    <span style="position: absolute; top: -9px; color: Black;
                        background-color: White; padding: 0px 3px 0px 3px">
                        Import from XML</span>
                    <asp:FileUpload ID="fupData" runat="server" />
                    <asp:Button runat="server" ID="butUpload" Text="Import"
                        OnClick="butUpload_Click" />
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="butUpload" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="upReinitialize" runat="server">
            <ContentTemplate>
                <div style="border: 1px solid black; padding: 10px 5px 5px 5px;
                    position: relative; margin-top: 10px">
                    <span style="position: absolute; top: -9px; color: Black;
                        background-color: White; padding: 0px 3px 0px 3px">
                        ReInitialize NMR Database</span>
                    <asp:UpdateProgress runat="server" ID="UpdateProgress1"
                        DisplayAfter="300" AssociatedUpdatePanelID="upReinitialize">
                        <ProgressTemplate>
                            <asp:Image runat="server" ImageUrl="~/Images/WaitRefresh_Black.gif"
                                Style="position: absolute; right: 10px; top: 3px"
                                Height="35" Width="35" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:Button runat="server" Text="Reinitialize" ID="butReinitialize"
                        OnClick="butReinitialize_Click" />
                    <br />
                    <asp:Panel ID="panConfirmReinitialize" runat="server"
                        Visible="false">
                        Are you sure?
                        <asp:Button ID="butNoReinitialize" runat="server" Text="No Way"
                            OnClick="butNoReinitialize_Click" />
                        <asp:Button ID="butConfirmReinitialize" runat="server"
                            Text="Yes" OnClick="butConfirmReinitialize_Click" />
                    </asp:Panel>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="upLogBook" runat="server">
            <ContentTemplate>
                <div style="border: 1px solid black; padding: 10px 5px 5px 5px;
                    position: relative; margin-top: 10px">
                    <span style="position: absolute; top: -9px; color: Black;
                        background-color: White; padding: 0px 3px 0px 3px">
                        Log Book</span>
                    <div style="position: relative; margin: 5px">
                        <asp:TextBox ID="tbLog" runat="server" Height="200"
                            Width="100%" TextMode="MultiLine"></asp:TextBox>
                    </div>
                </div>
            </ContentTemplate>
            <Triggers>
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>
